#============================================================
#	Player Climb Wall
#============================================================
# @datetime: 2022-5-12 23:44:25
#============================================================
class_name PlayerClimbWall
extends PlayerBaseState


var _climb_jump_timer = create_timer()


#(override)
func enter():
	pass


#(override)
func state_process(_arg0):
	input_move()
	
	if _climb_jump_timer.time_left == 0:
		if input_climb_wall():
			_climb_jump_timer.start(0.33)
		else:
			if get_blackboard().is_moving():
				switch_to(PlayerStateBlackboard.States.MOVE)
			else:
				switch_to(PlayerStateBlackboard.States.IDLE)
	elif get_host().is_on_floor():
		switch_to(PlayerStateBlackboard.States.MOVE)


